package com.joinlabs.service;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.ui.ModelMap;
import org.springframework.web.servlet.ModelAndView;

import com.joinlabs.entity.Address;
import com.joinlabs.entity.Order;
import com.joinlabs.entity.User;

public interface IOrderService {
	//显示用户所有订单
	List<Order> selcetByUser(String userId);
	
	//获取用户所有收货地址
	 List<Address> selectAllAddress(User user);
	 
	 //对订单进行支付
	 int payOver(String string);
	 
	 //生成订单
	 Order commitOrder(BigDecimal[] carId,User user);
	 
	 //把地址加入订单
	 void pay(String oid,long addr);
	 
	 //用OrderID查找订单
	 Order selectOrderByPK(String orderId);
	 
	 //收货
	 void takeOver(String oid);

	void delete(String orderId);

	void updata(Order order);
	
	int selectOrdercount();
	
}
